export default class bangmiHome {
  code: number;
  message: string;
  result: bangmiHome;
  ad: bangmiHome;
  head: Array<bangmiHome>;

  id: number;
  img: string;
  link: string;
  title: string;
  end_recommend: Array<bangmiHome>;
  previous: bangmiHome;
  list: Array<bangmiHome>;
  cover: string;
  favourites: string;
  season_id: string;
  serializing: Array<bangmiHome>;
  newest_ep_index: string;
  watching_count: string;

  public get FavouritesCount() {
    let d = parseFloat(this.favourites) / 10000;
    if (d >= 1)
      return d.toString(1) + "万";
    else
      return this.favourites;
  }
}